Recursive Cut and Stitch: Fast All-Pairs Shortest Paths Computation for Subset of Nodes
نویسندگان
چکیده
We present a practical algorithm for computing all pairs shortest paths for subset of nodes on road networks. It provides an important improvement for applications such as traffic analysis, where recomputation of shortest paths is the most expensive step that has to be repeated many times. We propose an algorithm that recursively cuts the graph until pieces are small enough to compute shortest paths fast, and then combines partial shortest path distances bottom-up. Theoretical worst-case running time of our algorithm is slightly slower than Dijkstra, but in practice, our algorithm is significantly faster.
منابع مشابه
Two fast algorithms for all-pairs shortest paths
In a large, dense network, the computation of the ‘distances’, i.e., the shortest path lengths between all pairs of nodes, can take a long time with algorithms known from the literature. We present two all-pairs shortest path algorithms, based on the equations of Bellman. These algorithms run fast, much faster than indicated by their time complexity bound of O(n2m), where n is the number of nod...
متن کاملMulti - Terminal Shortest Paths
The present paper gives an algorithm that finds simultaneously the shortest paths between many pairs of nodes in a given network. In the book by Berge, the values of shortest paths between many pairs of nodes are found. Here, we use a special matrix multiplication technique to find the actual arcs that are used to form the shortest paths. In a network with n nodes, log [n-l] special matrix mult...
متن کاملFast Shortest Paths Algorithms in the Presence of Few Negative Arcs
The shortest paths problem on weighted directed graphs is one of the basic network optimization problems. Its importance is mainly due to its applications in various areas, such as communication and transportation. Given a source node s in a weighted directed graph G, with n nodes and m arcs, the single-source shortest path problem (SSSP, for short) from s is the problem of finding the minimum ...
متن کاملFully Dynamic All Pairs All Shortest Paths
We consider the all pairs all shortest paths (APASP) problem, which maintains all of the multiple shortest paths for every vertex pair in a directed graph G = (V,E) with a positive real weight on each edge. We present a fully dynamic algorithm for this problem in which an update supports either weight increases or weight decreases on a subset of edges incident to a vertex. Our algorithm runs in...
متن کاملCustomizable Routing with Declarative Queries
To meet the demands of new Internet applications, recent work argues for giving end-hosts more control over routing. To achieve this goal, we propose the use of a recursive query language, which allows users to define their own routing protocols. Recursive queries can be used to express a large variety of route requests such as the k shortest paths, shortest paths that avoid (or include) a give...
متن کامل